import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { HomeComponent } from './home/home.component';
import { LocationStrategy, HashLocationStrategy, registerLocaleData } from '@angular/common';
import { StartComponent } from './home/start/start.component'; //花名册首页
import {JoinRollComponent} from "./home/join-roll/join-roll.component"; //加入班级
import { classInfoComponent } from "./home/class-info/class-info.component"; //班级
import {classNavComponent} from "./home/class-info/class-nav/class-nav.component"; //班级首页导航
import {MyGradeComponent} from "./home/class-info/my-grade/my-grade.component"; //我的成绩
import {classMembersComponent} from "./home/class-info/class-members/class-members.component"; //班级成员
import {classNoticesComponent} from "./home/class-info/class-notices/class-notices.component"; //班级公告

// service
import { UtilService } from './my-service/util.service';
import { MyPacketService } from './my-service/mypacket.service';
import {RollService} from "./my-service/roll.service";
//公共组件
import { NavComponent } from './nav/nav.component';
import { breadcrumbComponent } from './my-public/breadcrumb/breadcrumb.component';
// UI
import { NgZorroAntdModule, NZ_MESSAGE_CONFIG } from 'ng-zorro-antd';
//指令
import { ZeditorDirective } from './my-directive/zeditor.directive';
import { ZeditorRenderElDirective } from './my-directive/zeditorRenderEl.directive';
//管道
import { ToHTMLPipe} from "./my-pipe/to-html.pipe";

@NgModule({
  declarations: [
    AppComponent,
    NavComponent,
    HomeComponent,
    StartComponent,
    JoinRollComponent,
    breadcrumbComponent,
    classInfoComponent,
    classNavComponent,
    MyGradeComponent,
    classMembersComponent,
    classNoticesComponent,
    //指令
    ZeditorDirective,
    ZeditorRenderElDirective,
    // 富文本编辑器如果上线的时候不需要使用，就删除相关的
    ToHTMLPipe


  ],
  imports: [
    AppRoutingModule,
    HttpClientModule,
    BrowserModule,
    FormsModule,
    BrowserAnimationsModule,
    NgZorroAntdModule,
    HttpModule
  ],
  providers: [
    UtilService,
    MyPacketService,
    RollService
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
